home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / disk / whtape21.zip / SAMPLE.BAT < prev    next >
DOS Batch File  |  1993-12-29  |  751b  |  52 lines

  1. @echo off
  2. rem This batch file is meant as an example. If you replace my backup
  3. rem commands with your backup commands it shouldn't need too much
  4. rem tweeking. This is set up for day of the week prompting.
  5.  
  6.  
  7. whatape /m4 /l /e
  8. if errorlevel 7 goto saturday
  9. if errorlevel 6 goto friday
  10. if errorlevel 5 goto thursday
  11. if errorlevel 4 goto wednsday
  12. if errorlevel 3 goto tuesday
  13. if errorlevel 2 goto monday
  14. if errorlevel 1 goto sunday
  15.  
  16. :saturday
  17.  
  18. backup incremental
  19. goto end
  20.  
  21. :friday
  22.  
  23. backup incremental
  24. goto end
  25.  
  26. :thursday
  27.  
  28. backup incremental
  29. goto end
  30.  
  31. :wednsday
  32.  
  33. backup incremental
  34. goto end
  35.  
  36. :tuesday
  37.  
  38. backup incremental
  39. goto end
  40.  
  41. :monday
  42.  
  43. backup incremental
  44. goto end
  45.  
  46. :sunday
  47.  
  48. backup full
  49. goto end
  50.  
  51. :end
  52.